package com.imooc.distributedemo.resume.staticProxy;

public class CountProxy implements Count {

    private CountImpl countImpl;

    public CountProxy(CountImpl countImpl){
        this.countImpl = countImpl;
    }

    @Override
    public void queryCount() {
        System.out.println("查询账户的预处理——————");
        // 调用真正的查询账户方法
         countImpl.queryCount();
        System.out.println("查询账户之后————————");
    }

    @Override
    public void updateCount() {
        System.out.println("修改账户的预处理——————");
        // 调用真正的查询账户方法
        countImpl.updateCount();
        System.out.println("修改账户之后————————");
    }
}
